#!/usr/bin/env node
// 导入三个计算函数
const calculateDiameter = require('./lib/diameter');
const calculateCircumference = require('./lib/circumference');
const calculateCircleArea = require('./lib/area');

// 创建 circle 对象，包含三个方法
const circle = {
  calculateDiameter: function(radius) {
    return calculateDiameter(radius);
  },
  calculateCircumference: function(radius) {
    return calculateCircumference(radius);
  },
  calculateArea: function(radius) {
    return calculateCircleArea(radius);
  }
};

// 导出 circle 对象
module.exports = circle;